package xyz.xtt.equity.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 权益售卖记录表
 * </p>
 *
 * @author dale
 * @since 2025-02-10
 */
@Data
@Builder
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_benefit_purchase_record")
@ApiModel(value = "TblBenefitPurchaseRecord对象", description = "权益售卖记录表")
public class TblBenefitPurchaseRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("record_id")
    @ApiModelProperty("主键")
    private Long recordId;

    @ApiModelProperty("购买人通通用户id")
    private Long appUserId;

    @ApiModelProperty("资产编号表id")
    private Long assetNoId;

    @ApiModelProperty("销售包id")
    private Long packageId;

    @ApiModelProperty("购买数量")
    private Integer purchaseNum;

    @ApiModelProperty("单价")
    private BigDecimal unitPrice;

    @ApiModelProperty("实际支付总价")
    private BigDecimal totalPaid;

    @ApiModelProperty("支付状态")
    private Integer payStatus;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("最近更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("逻辑删除标识  0-未删除 1-已删除")
    private Integer isDel;

    @ApiModelProperty("业务类型")
    private String biz_type;

    @ApiModelProperty("业务订单id,可能为空")
    private Long businessOrderId;

    @ApiModelProperty("权益状态：0-正常，1-已冻结")
    private Integer benefitStatus;
}